//
//  EAMButton.m
//  WhatToEat
//
//  Created by 方力 on 15/10/27.
//  Copyright (c) 2015年 Mac. All rights reserved.
//
#import "ConstansCode.h"
#import "EAMButton.h"

@implementation EAMButton


-(id)init
{
    self=[super init];
    
    if (self) {
          [self updateUI];  
    }
    
    return self;
    
}


-(id)initWithCoder:(NSCoder *)aDecoder
{
    
    self=[super initWithCoder:aDecoder];
    
    if (self) {
            [self updateUI];
    }
    
    
    return self;
    
}

-(instancetype)initWithFrame:(CGRect)frame
{
    
    self=[super initWithFrame:frame];
    if (self) {
        
        [self updateUI];
    }
    
    return self;
    
}


-(void)updateUI
{
    
    self.layer.cornerRadius=0;
    
    self.clipsToBounds=YES;
    
    self.backgroundColor=kTingColor;
    
    
}
@end
